/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="STATUSPROTOCOLO")
public class StatusProtocoloProteu implements Serializable{

    @Id
    @Column(name="STA_IN_CODIGO")
    private Integer staInCodigo;
    @Column(name="STA_ST_DESCRICAO")
    private String staStDescricao;

    public Integer getStaInCodigo() {
        return staInCodigo;
    }

    public void setStaInCodigo(Integer staInCodigo) {
        this.staInCodigo = staInCodigo;
    }

    public String getStaStDescricao() {
        return staStDescricao;
    }

    public void setStaStDescricao(String staStDescricao) {
        this.staStDescricao = staStDescricao;
    }

    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final StatusProtocoloProteu other = (StatusProtocoloProteu) obj;
        if (this.staInCodigo != other.staInCodigo && (this.staInCodigo == null || !this.staInCodigo.equals(other.staInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 23 * hash + (this.staInCodigo != null ? this.staInCodigo.hashCode() : 0);
        return hash;
    }


}
